package com.bestdreamer.thread_synchronized;

public class Demo2Thread2 extends Thread {

    private final Demo2ObjectService service;

    public Demo2Thread2(Demo2ObjectService service){
        super();
        this.service = service;
    }

    @Override
    public void run() {
        super.run();
        service.serviceMethodB();
    }
}
